<template>
  <div class="search">
    <van-sticky>
      <van-nav-bar
        :title="title"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
    </van-sticky>
  </div>
</template>

<script>
export default {
  props: ["title"],
  data() {
    return {};
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss">
.search {
  position: relative;
  z-index: 9999;
  .van-nav-bar__arrow,
  .van-nav-bar__title,
  .van-nav-bar__text {
    color: #b4282d;
  }
}
</style>